package com.dto.excution;

import com.base.BaseAPIExcution;
import com.enums.LoginEnum;
import com.enums.StudentEnum;

/**
 * Created by Administrator on 2018/10/12 0012.
 */
public class LoginExcution<T> extends BaseAPIExcution<T> {
    public LoginExcution(T t, LoginEnum loginEnum) {
        this.data = t;
        this.status = loginEnum.isStatus();
        this.msg = loginEnum.getMsg();
    }

    public LoginExcution(T t, StudentEnum studentEnum) {
        this.data = t;
        this.status = studentEnum.isStatus();
        this.msg = studentEnum.getMsg();
    }
}
